package org.jackysoft.struts2.assets;
import java.util.Collection;

import javax.annotation.Resource;

import org.jackysoft.entity.PreparedSparePart;
import org.jackysoft.service.PreparedSparePartService;
import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Namespace;
import org.jackysoft.struts2.UtilsCRUDAction;
import org.springframework.beans.factory.config.BeanDefinition;
import org.springframework.context.annotation.Scope;



@Namespace("/preparedsparepart")
@Scope(BeanDefinition.SCOPE_PROTOTYPE)
public class PreparedSparePartAction extends UtilsCRUDAction<PreparedSparePart> {
	/**
	 * 
	 */
	private static final long serialVersionUID = 227043228431048724L;
	private PreparedSparePartService service;
	private PreparedSparePart bean;
	private Collection<PreparedSparePart> beans;	
	
	
	
	
	
	
	public void setBean(PreparedSparePart bean){
	     this.bean = bean;
	}
	public PreparedSparePart getBean(){
	     return this.bean;
	}
	public void setBeans(Collection<PreparedSparePart> beans){
	
	     this.beans = beans;
	}
	public Collection<PreparedSparePart> getBeans(){
	     return this.beans;
	}
	
	@Resource
	public void setService(PreparedSparePartService service) {
		this.service = service;
		this.setDataProvider(service);
	}	
	
	public PreparedSparePartService getService(){
	   return this.service;
	}
		
}